package org.zfes.snowier.cloud.zbss.cms.words.service;

import java.util.Map;
import java.util.Optional;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.cloud.zbss.cms.words.model.CmsWordsSearch;
public interface ICmsWordsSearchService{

	 Optional<CmsWordsSearch> loadCmsWordsSearchById(Long id);
	  
	 void createCmsWordsSearch(CmsWordsSearch cmsWordsSearch);
	 
	 void updateCmsWordsSearch(CmsWordsSearch cmsWordsSearch);
	 
	 //后台：优先级、推荐修改设置
	 void setCmsWordsSearchPriorityAndIsRecommend(Long id,Integer priority,Byte isRecommend);
	
	 void deleteCmsWordsSearch(Long id);
	
	 DataSet loadCmsWordsSearchDataSet(Map<String, Object> params);
	 
	//被调用：按搜索词查找
	 Optional<CmsWordsSearch> selectCmsWordsSearchByWords(String words);
	 
 	 void setCmsWordsSearchStatus(Long id, Byte status);
 	 
 	
 	 
}